package de.jmda.gen.java.impl;

import de.jmda.core.util.StringUtil;
import de.jmda.gen.GeneratorException;

public class DefaultConstructorNameGenerator
    extends DefaultMethodNameGenerator
{
	@Override
	protected StringBuffer validate(StringBuffer stringBuffer)
			throws GeneratorException
	{
		if (false == StringUtil.startsWithUpper(stringBuffer))
		{
			throw new GeneratorException(
					stringBuffer + " has to start with upper case");
		}

		return stringBuffer;
	}
}